package com.oliver.proxy.midjourney.domain.valueobject;

import lombok.Getter;

@Getter
public enum TaskType {
    TYPE_0(0),
    TYPE_1(1);

    private final Integer value;

    TaskType(Integer value) {
        this.value = value;
    }

    public static TaskType fromValue(Integer value) {
        for (TaskType type : TaskType.values()) {
            if (type.value.equals(value)) {
                return type;
            }
        }
        throw new IllegalArgumentException("Invalid task type: " + value);
    }
}